package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_decoration", desc = "头像框、称号、装饰获得", autoSave = true, uploadCk = true)
public class LogDecoration extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "装饰id", isIndex = true)
    private int decorationId;
    @FieldTypeAnnotation(desc = "原始值")
    private long oldTime;
    @FieldTypeAnnotation(desc = "当前值")
    private long nowTime;
    @FieldTypeAnnotation(desc = "变更值")
    private long addTime;
    @FieldTypeAnnotation(desc = "master途径")
    private int master;
    @FieldTypeAnnotation(desc = "son途径")
    private int son;

    public LogDecoration(long userId, int decorationId, long oldTime, long nowTime, long addTime, int master, int son) {
        this.userId = userId;
        this.decorationId = decorationId;
        this.oldTime = oldTime;
        this.nowTime = nowTime;
        this.addTime = addTime;
        this.master = master;
        this.son = son;
    }

    public long getUserId() {
        return userId;
    }

}
